/*
 * Created on Jun 21, 2005
 *
 */
package com.erclab.internal.xpresso.formelements;

import com.erclab.internal.xpresso.exceptions.FormException;
import com.erclab.internal.xpresso.forms.Form;

/**
 * @author Enrique Rodriguez.
 *
 */
public class HiddenUniqueKey extends FormElement {

	/* (non-Javadoc)
	 * @see com.erclab.internal.xpresso.formelements.FormElement#toHTML(com.erclab.internal.xpresso.forms.Form)
	 */
	public String toHTML(Form theForm) {
		return "<input type=\"hidden\" name=\"Field" + this.idFormElement 
		+ "\" value=\"" + theForm.getFormParameters().getUniqueKeyValue() + "\">";
	}

	public void loadLookupValues(Form theForm) throws FormException {
		// Not applicable for this type of element
	}

	public boolean isModifiable() {
		return true;
	}

}
